
const express = require('express');
const app = express();
const router = require('./router/index');
const bodyParser = require('body-parser');

// RMVP
// R => '/api'   P => (req,res)=> {}

app.use(bodyParser.urlencoded({ extended: false }));

app.use(bodyParser.json());
app.use('/', router);

app.listen(8080, (err) => {
    console.log('监听8080');
})
